package com.sunrise.generico.entidade;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.generico.entidade.iface.EntidadeNegocio;

@Entity
@Table(name = "historico_senha")
public class HistoricoSenha implements EntidadeNegocio {


	/**
	 * 
	 */
	private static final long serialVersionUID = 7198474342183356308L;
	
	@Id
	@SequenceGenerator(name="pk_sequence",sequenceName="historico_senha_id_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="pk_sequence")
	@javax.persistence.Column
	@Getter @Setter
	private Long id;
	
	@Column(name = "chave", length = 400)
	@Getter @Setter
	private String chave;
	
	@Column(name = "dataSolicitacao")
	@Getter @Setter
	private Date dataSolicitacao;
	
	@OneToOne
	@Getter @Setter
	private Usuario usuario;
	
	@Column(name = "ativo")
	@Getter @Setter
	private Boolean ativo;
	
}
